#!/usr/bin/python
# -*- coding: utf-8 -*-

"""
Example for showing a simple message box

from www.zetcode.com
"""

import wx

class Example(wx.Frame):
    def __init__(self, *args, **kwds):
        
        super(Example, self).__init__(*args, **kwds)
        
        self.InitUI()
        
    def InitUI(self):
        
        wx.FutureCall(5000, self.ShowMessage)
        
        self.SetSize((300, 200))
        self.SetTitle('Message box')
        self.Center()
        self.Show(True)
        
        
    def ShowMessage(self):
        wx.MessageBox('Message box', 'Info', wx.OK|wx.ICON_INFORMATION)
        
        
def main():
    ex = wx.App()
    Example(None)
    ex.MainLoop()
    
if __name__ == '__main__':
    main()
